<%-- 
    Document   : supervisor_seguranca
    Created on : 07/07/2011, 04:56:45
    Author     : Balthazar
--%>

<%@page import="br.ufc.quixada.adrs.model.Perfil" %>
<%@page import="br.ufc.quixada.adrs.model.Supervisor" %>
<%
    Perfil perfilUser = (Perfil) session.getAttribute("user");
    if (perfilUser == null || !(perfilUser instanceof Supervisor)) {
        session.setAttribute("erro", br.ufc.quixada.adrs.util.Msg.AUTHENTICATION_ERROR);
        response.sendRedirect(request.getContextPath() + "/index.jsp");
        return;
    }
%>
